﻿<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <style type="text/css"></style>
    <meta content="no-siteapp" http-equiv="Cache-Control">
    <link media="handheld" rel="alternate">
    <!-- end 云适配 -->
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <title>公司产品-招聘服务-拉勾网-最专业的互联网招聘平台</title>
    <meta content="23635710066417756375" property="qc:admins">
    <meta name="description" content="拉勾网是3W旗下的互联网领域垂直招聘网站,互联网职业机会尽在拉勾网">
    <meta name="keywords"
          content="拉勾,拉勾网,拉勾招聘,拉钩, 拉钩网 ,互联网招聘,拉勾互联网招聘, 移动互联网招聘, 垂直互联网招聘, 微信招聘, 微博招聘, 拉勾官网, 拉勾百科,跳槽, 高薪职位, 互联网圈子, IT招聘, 职场招聘, 猎头招聘,O2O招聘, LBS招聘, 社交招聘, 校园招聘, 校招,社会招聘,社招">
    <meta content="QIQ6KC1oZ6" name="baidu-site-verification">

    <script type="text/javascript">
        var ctx = "http://www.lagou.com";
        console.log(1);
    </script>
    <link href="http://www.lagou.com/images/favicon.ico" rel="Shortcut Icon">
    <link href="/css/style.css" type="text/css" rel="stylesheet">
    <link href="/css/external.min.css" type="text/css" rel="stylesheet">
    <link href="/css/popup.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="/js/jquery.1.10.1.min.js"></script>
    <script src="/js/jquery.lib.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/js/ajaxfileupload.js"></script>
    <script src="/js/additional-methods.js" type="text/javascript"></script>
    <!--[if lte IE 8]>
    <script type="text/javascript" src="/js/excanvas.js"></script>
    <![endif]-->
    <script src="/js/ajaxCross.json" charset="UTF-8"></script>
</head>
<body>
<div id="body">
    <div th:insert="~{header :: header}"></div>
    <div id="container">

        <div class="content_mid">
            <dl class="c_section c_section_mid">
                <dt>
                    <h2><em></em>填写公司信息</h2>
                    <a style="width: 25px; height: 50px; float: left; margin-right: 5px;" href="#"><i></i></a>
                </dt>
                <dd>
                    <div class="c_text">目标明确、前途光明的产品是吸引求职者的制胜法宝哦！</div>
                    <img width="668" height="56" class="c_steps" alt="第四步" src="/images/step4.png">

                    <form method="post" onsubmit="return false;" id="productForm">
                        <div id="productDiv">
                            <div class="formWrapper">
                                <input type="hidden" value="25927" name="productInfos[0].companyId">
                                <h3>产品海报</h3>
                                <div class="new_product mt20">
                                    <div id="productNo0" class="product_upload">
                                        <div style="background-color: rgb(147, 183, 187);">
                                            <span>上传产品图片</span>
                                            <br>
                                            尺寸：380*220px 大小：小于5M
                                        </div>
                                    </div>
                                    <div id="productShow0" class="product_upload dn productShow">
                                        <img width="380" height="220" src="">
                                        <span>更换产品图片<br>380*220px 小于5M</span>
                                    </div>
                                    <input type="file" title="支持jpg、jpeg、gif、png格式，文件小于5M"
                                           onchange="img_check(this,'http://www.lagou.com/c/upload.json',380,220,5,'myfiles0','myfiles0_error','productNo0','productShow0','type0','productInfos0');"
                                           name="myfiles" id="myfiles0">
                                    <input type="hidden" value="3" name="productInfos[0].type" id="type0">
                                    <input type="hidden" name="productInfos[0].productPicUrl" id="productInfos0">
                                </div>
                                <span style="display:none;" id="myfiles0_error" class="error"></span>

                                <h3>产品名称</h3>
                                <input type="text" placeholder="请输入产品名称" name="productInfos[0].product" id="name0">

                                <h3>产品地址</h3>
                                <input type="text" placeholder="请输入产品主页URL或产品下载地址" name="productInfos[0].productUrl"
                                       id="address0">

                                <h3>产品简介</h3>
                                <textarea placeholder="请简短描述该产品定位、产品特色、用户群体等" maxlength="1000"
                                          name="productInfos[0].productProfile" id="description0"></textarea>
                                <div class="word_count">你还可以输入 <span>500</span> 字</div>
                            </div>
                        </div>
                        <!--<a id="addMember" class="add_member" href="javascript:void(0)"><i></i>继续添加公司产品</a>-->
                        <div class="clear"></div>
                        <input type="submit" value="保存，下一步" onclick="addCompanyProduct()" id="step4Submit"
                               class="btn_big fr">
                    </form>
                </dd>
            </dl>
        </div>

        <script src="/js/step4.min.js" type="text/javascript"></script>
        <div class="clear"></div>
        <a rel="nofollow" title="回到顶部" id="backtop" style="display: none;"></a>
    </div><!-- end #container -->
</div><!-- end #body -->
<div id="footer">
    <div class="wrapper">
        <a rel="nofollow" target="_blank" href="about.html">联系我们</a>
        <a target="_blank" href="http://www.lagou.com/af/zhaopin.html">互联网公司导航</a>
        <a rel="nofollow" target="_blank" href="http://e.weibo.com/lagou720">拉勾微博</a>
        <a rel="nofollow" href="javascript:void(0)" class="footer_qr">拉勾微信<i></i></a>
        <div class="copyright">&copy;2013-2014 Lagou <a
                href="http://www.miitbeian.gov.cn/state/outPortal/loginPortal.action"
                target="_blank">京ICP备14023790号-2</a></div>
    </div>
</div>

<script src="/js/core.min.js" type="text/javascript"></script>
<script src="/js/popup.min.js" type="text/javascript"></script>
</body>
</html>
<script type="text/javascript">
    // 添加公司产品
    function addCompanyProduct() {
        var name0 = $("#name0").val();
        // alert("name0" + name0);
        var address0 = $("#address0").val();
        // alert("address0" + address0);
        var description0 = $("#description0").val();
        // alert("description0" + description0);
        $.ajax({
            url:'/product/addProduct.html',
            type:'POST',
            dataType:'JSON',
            data:{
                productName:name0,
                productUrl:address0,
                productSummary:description0
            },
            success:function (result) {
                if (result.code == 2) {
                    window.location.href = result.data;
                } else {
                    alert("失败");
                    return false;
                }
            }
        })
    }
</script>